package cn.boot1112.springboot1112.controller;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;

@Controller
public class ThyController {
    @RequestMapping("/thy")
    public String thy(Model model) {
        model.addAttribute("message", "Hello, Thymeleaf!");

        model.addAttribute("currentTime", new Date());
        return "thy";
    }
}
